package com.rockcent.mall.lib.dto;

import com.rockcent.common.domain.DtoEntity;
import com.rockcent.mall.lib.domain.TopicProduct;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

/**
 * Created by zhangjh on 2016/11/15.
 * 专题dto
 */
public class TopicDto extends DtoEntity {

    /**
     * 平台ID
     */
    private Long mallId;


    /**
     * 标题
     */
    private String title;


    /**
     * 页面链接
     */
    private String url;


    /**
     * 专题图片
     */
    private String pic;
    /**
     * 专题图片
     */
    private List<String> picList;

    /**
     * 专题描述
     */
    private String description;

    /**
     * 专题背景图片
     */
    private String backgroundPath;


    /**
     * 序号(排序字段)
     */
    private Integer seqNo;

    /**
     * 创建开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String beginDate;

    /**
     * 创建结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endDate;

    /**
     * 专题产品
     */
    private List<TopicProduct> topicProducts;

    /**
     * 产品数量
     */
    private int productsCount;


    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getBackgroundPath() {
        return backgroundPath;
    }

    public void setBackgroundPath(String backgroundPath) {
        this.backgroundPath = backgroundPath;
    }

    public Integer getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(Integer seqNo) {
        this.seqNo = seqNo;
    }

    public String getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(String beginDate) {
        this.beginDate = beginDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public List<TopicProduct> getTopicProducts() {
        return topicProducts;
    }

    public void setTopicProducts(List<TopicProduct> topicProducts) {
        this.topicProducts = topicProducts;
    }

    public int getProductsCount() {
        return productsCount;
    }

    public void setProductsCount(int productsCount) {
        this.productsCount = productsCount;
    }

    public List<String> getPicList() {
        return picList;
    }

    public void setPicList(List<String> picList) {
        this.picList = picList;
    }

    @Override
    public String toString() {
        return "TopicDto{" +
                "mallId=" + mallId +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", pic='" + pic + '\'' +
                ", picList=" + picList +
                ", description='" + description + '\'' +
                ", backgroundPath='" + backgroundPath + '\'' +
                ", seqNo=" + seqNo +
                ", beginDate='" + beginDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", topicProducts=" + topicProducts +
                ", productsCount=" + productsCount +
                '}';
    }
}
